package com.kcht.sylyg08.dao;

import com.kcht.adp.eao.IBaseEao;
import com.kcth.sylyg08.entity.Task;

import javax.ejb.Local;
import java.util.List;
/**
  *
  * @Package:        com.kcht.sylyg08.dao
  * @Description:     java类作用描述
  * @Author:         lenovo
  * @CreateDate:     2019/5/15 11:17
 */
@Local
public interface ITaskDao extends IBaseEao<Task, Long> {
    /**
     * fetch data by rule id
     *
     * @return List<Task>
     */
    List<Task> list();

    List<Task> listTaskToDo();

    /**
     * fetch data by rule id
     * @param containerId
     * @return
     */
    Task getTaskByContainerId(String containerId);

    /**
     * fetch data by rule id
     * @param taskId
     * @return
     */
    Task getTaskByTaskId(String taskId);

    /**
     * fetch data by rule id
     * @param taskId
     * @return
     */
    Task getOutGoingTaskByTaskId(String taskId);
}
